package com.guigu.wenzhiyi.controller;

import com.guigu.wenzhiyi.pojo.Mentalitytest;
import com.guigu.wenzhiyi.service.MentalitytestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("Mentalitytest")
public class MentalitytestController {

    @Autowired
    MentalitytestService mentalitytestService;

    @RequestMapping("/list")
    public List<Mentalitytest> list(Integer id, Integer type){
        Mentalitytest mentalitytest = new Mentalitytest();
        mentalitytest.setMentalityresultid(id);
        mentalitytest.setType(type);
        return mentalitytestService.list(mentalitytest);
    }
}
